package org.apache.rocketmq.broker;

import org.junit.jupiter.api.Test;

/**
 * @author fanghuabao
 * @RemindMe 匠人精神，书山有路勤为径，学海无涯苦作舟
 * @Description broker测试
 * @createTime 2025-09-20 22:01:00
 */
public class BrokerStartupTest2 {

    /**
     * 配置环境变量：
     * ROCKETMQ_HOME=/tmp/rocketmq5
     */
    @Test
    public void test_single_broker(){
        String[] args = {
                "-n",
                "localhost:9876",
                "-c",
                "/Users/huabfang/work/git/tianshu/alibaba-learning/rocketmq/rocketmq-all-5.3.3/distribution/conf/2m-noslave/broker-a.properties"
        };
        BrokerStartup.main(args);
    }


    public static void main(String[] args) {
        String[] args2 = {
                "-n",
                "localhost:9876",
                "-c",
                "/Users/huabfang/work/git/tianshu/alibaba-learning/rocketmq/rocketmq-all-5.3.3/distribution/conf/2m-noslave/broker-a.properties"
        };
        BrokerStartup.main(args2);
    }

}
